package com.eastshop.seller.dao;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.eastshop.seller.vo.Region;
import com.eastshop.seller.vo.Seller;
/**
 * 商家管理的Dao类
 * @author admin
 *
 */
public class SellerDao extends HibernateDaoSupport {

	// Dao层查询商家的信息
	public Seller find() {
		String hql = "from Seller";
		List<Seller> list = this.getHibernateTemplate().find(hql);
		if(list != null && list.size() > 0){
			return list.get(0);
		}
		return null;
	}

	// Dao层修改商家的信息
	public void update(Seller seller) {
		this.getHibernateTemplate().update(seller);
	}
}
